package user;

import java.net.InetAddress;
import java.util.HashMap;
import java.util.Map;

public class ConnectedPeople {
	public Map <InetAddress,String> listConnected;
	
	public ConnectedPeople()
	{
		listConnected = new HashMap <InetAddress,String>();
	}
	
	public void addUser(User us)
	{
		listConnected.put(us.getIpAddress(), us.getLogin());
	}
	
	public void deleteUser(User us)
	{
		listConnected.remove(us.getIpAddress());
	}
	
	

}
